"""
输出20-80之间能被3整除的整数，每5个一行
"""
count = 0
for i in range(20, 81):
    if i % 3 == 0:
        print(i, end=" ")
        count += 1
        if count % 5 == 0:
            print("")
